import type { Data } from '@/types/consult'
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const userConsultStore = defineStore(
  'cp-consult',
  () => {
    //存token
    const consult = ref<Data>({})
    //把信息放入到pinli里面去
    //这是个方法
    const token = (t: Data) => {
      consult.value = t
    }
    return {
      consult,
      token
    }
  },
  {
    persist: true
  }
)
